package com.nbcio.modules.crm.service.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * CRM客户服务实体
 */
@Data
@TableName("crm_service")
public class CrmService {
    @TableId
    private Long serviceId;
    private String serviceNo;
    private String serviceName;
    private Long customerId;
    private Long contactId;
    private Long contractId;
    private String serviceType; // SUPPORT/REPAIR/TRAINING/OTHER
    private String priority; // LOW/NORMAL/HIGH/URGENT
    private Long ownerUserId;
    private Long ownerDeptId;
    private LocalDateTime requestDate;
    private LocalDateTime expectedDate;
    private LocalDateTime actualDate;
    private String description;
    private String solution;
    private Integer satisfactionScore; // 满意度评分(1-5)
    private String satisfactionComment;
    private String status; // OPEN/IN_PROGRESS/RESOLVED/CLOSED
    private String procInsId; // 流程实例ID
    private String remark;
    private Long createBy;
    private LocalDateTime createTime;
    private Long updateBy;
    private LocalDateTime updateTime;
    private Long createDept;
    private String tenantId;
}


